package com.feri.findlife.controller;

import com.feri.findlife.dto.WorriedSaveDto;
import com.feri.findlife.pojo.Worried;
import com.feri.findlife.service.intf.WorriedService;
import com.feri.findlife.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: FindLife
 * @description:
 * @author: Feri(邢朋辉)
 * @create: 2020-12-29 11:25
 */
@RestController
@RequestMapping("api/worried/")
public class WorriedController {
    @Autowired
    private WorriedService service;

    @PostMapping("save.do")
    public R save(@RequestBody WorriedSaveDto dto){
        return service.save(dto);
    }
}
